package com.sanyu.controller.admin;

import com.sanyu.pojo.dto.ArticleDTO;
import com.sanyu.pojo.dto.ArticlePageQueryDTO;
import com.sanyu.pojo.dto.FeedbackDTO;
import com.sanyu.pojo.dto.FeedbackPageQueryDTO;
import com.sanyu.pojo.vo.FeedbackVO;
import com.sanyu.pojo.vo.MessageVO;
import com.sanyu.result.PageResult;
import com.sanyu.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin/feedback")
@Api("后台管理页面/用户反馈管理相关接口")
public class FeedbackController {
    @GetMapping("/{id}")
    @ApiOperation("根据文章ID获取反馈详细信息")
    public Result getMessageById(@PathVariable Long id){
        return Result.success(new FeedbackVO());
    }

    @GetMapping("/page")
    @ApiOperation("分页查询反馈列表")
    public Result<PageResult> page(FeedbackPageQueryDTO feedbackPageQueryDTO){
        PageResult pageResult = new PageResult();
        return Result.success(pageResult);
    }

    @DeleteMapping("/{id}")
    @ApiOperation("删除指定ID的反馈")
    public Result delete(@PathVariable Long id){
        return Result.success();
    }
}
